import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "./axios";
import ElementUI from "element-ui";
import mavonEditor from "mavon-editor";
import filters from "./filters/index";
import "element-ui/lib/theme-chalk/index.css";
import "mavon-editor/dist/css/index.css";
import "@/icon/iconfont.css";

Vue.use(ElementUI);
Vue.prototype.$axios = axios;
Vue.config.productionTip = false;
Vue.use(mavonEditor);
// 过滤器注册
Object.keys(filters).forEach((k) => Vue.filter(k, filters[k]));

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
